package bakabka;

public class Demo3 {

	public static void main(String[] args) {
		int a;
		int b;
		int c;
		int y;
		
		for(int x=100;x<1000;x++) {
			a=x/100;
			b=(x%100)/10;
			c=x%10;
			y=(a*a*a)+(b*b*b)+(c*c*c);
			if(x==y) {
				System.out.println(x);
			}
		}
			

	}

}
